<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="description" content="Dataset in HTML">
  
  <title>Arguments in JS</title>
</head>

<body>

<script>
// MarkdownIt.prototype.use = function (plugin /*, params, ... */) {
//   var args = [ this ].concat(Array.prototype.slice.call(arguments, 1));
//   plugin.apply(plugin, args);
//   return this;
// };

function Person(name) {
  this.name = name;
}

Person.prototype.use = function(tools) {
  console.log(arguments)
  var args = [ this ].concat(Array.prototype.slice.call(arguments, 1));
  console.log(args);
}

var p = new Person('Kelvin')
console.log(p.name)

p.use('tools', 1, 2, 4)
</script>
</body>
</html>
